<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
    <meta name="format-detection" content="telephone=yes"/>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>呼叫波罗鸡</title>
    <style>
        @font-face{font-family: 'HYQiHei';src : url("{{url('font/HYQiHei-65J.ttf')}}");}
        body{width: 100%; padding: 0;margin: 0;}
        img{max-width: 100%;display:inline;float: left;}
        ul{list-style-type: none;margin:0;padding:0;}
        .content{position: fixed;width: 100%;height: 100%;background: url("{{url('images/page/hujiao.jpg')}}") no-repeat;background-size:100% 100%;font-family: 'HYQiHei';}
        .text-content{color: white;position: absolute;top: 43%;left: 2.4rem;width: 82%;}
        .title{font-size: 1.25rem;letter-spacing:0.1rem;}
        .company_info{margin-top: 10px;}
        .back{position: absolute;top:1rem;width: 75px;height: 55px;}
        .phone-call{position: absolute;bottom: 5.5rem;width: 80px;height: 80px;left: 40%;}
    </style>
    <!-- Jquery -->
    <script src="{{url('js/jquery.min.js')}}"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>
<body>
    <div class="content">
        <div class="text-content">
            <span class="title">广州苍龙文化创意发展有限公司</span>
            <div class="company_info">
                <ul>
                    <li>地址：广州市黄埔区丰乐北路228号5楼</li>
                    <li>邮编：510600</li>
                    <li>电话：020-82557365</li>
                    <li>邮箱：9718038@qq.com</li>
                    <li>Q  Q：9718038</li>
                </ul>
            </div>
        </div>

        <div class="back"></div>
        <a href="tel:020-82557365"><div class="phone-call"></div></a>
    </div>
</body>
<script>
    $(function () {
        $('.back').click(function () {
            window.location.href="{{route('Home.User.baibaoxiang')}}";
        });

        var url=location.href;
        $.ajax({
            type : "post",
            url : "{{route('Api.Wechat.getJsApiPacket')}}",//替换网址，xxx根据自己jssdk文件位置修改
            dataType : "json",
            data:{url:url},
            success : function(obj){
                if(obj.level == 'success'){
                    var data = obj.data;
                    wx.config({
                        appId: data.appId,
                        timestamp: data.timestamp,
                        nonceStr: data.nonceStr,
                        signature: data.signature,
                        jsApiList: [
                            "onMenuShareTimeline", //分享给好友
                            "onMenuShareAppMessage", //分享到朋友圈
                            "onMenuShareQQ", //分享到QQ
                            "onMenuShareWeibo", //分享到微博
                            'chooseImage', 'previewImage', 'uploadImage', 'downloadImage'
                        ]
                    });
                }
            },
            error:function(data){
                console.log("连接失败！");
            }
        });

        var imgUrl = "{{url('images/default_avatar.png')}}";
        var lineLink = "{{route('Home.Page.hujiao')}}";
        var descContent = '广州苍龙文化创意发展有限公司';
        var shareTitle = '波罗鸡欢迎您';

        wx.ready(function (){
            var shareData = {
                title: shareTitle,
                desc: descContent,//这里请特别注意是要去除html
                link: lineLink,
                imgUrl: imgUrl
            };
            wx.onMenuShareAppMessage(shareData);
            wx.onMenuShareTimeline(shareData);
            wx.onMenuShareQQ(shareData);
            wx.onMenuShareWeibo(shareData);
        });
    });
</script>
</html>